import request from "@/router/axios";

export const getProductOrderRefundList = (params) => {
  return request({
    url: "/admin/productOrderRefund/pageList",
    method: "get",
    params: { ...params },
  });
};

export const auditProductOrderRefund = (row) => {
  return request({
    url: "/admin/productOrderRefund/audit",
    method: "post",
    data: row,
  });
};

export const sendProductOrderRefund = (row) => {
  return request({
    url: "/admin/productOrderRefund/send",
    method: "post",
    data: row,
  });
};

export const refundProductOrderRefund = (row) => {
  return request({
    url: "/admin/productOrderRefund/refund",
    method: "post",
    data: row,
  });
};

export const closeProductOrderRefund = (row) => {
  return request({
    url: "/admin/productOrderRefund/close",
    method: "post",
    data: row,
  });
};

export const delProductOrderRefundItem = (row) => {
  return request({
    url: "/admin/productOrderRefund/delete",
    method: "post",
    data: row,
  });
};